﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/Admin.Master" AutoEventWireup="true" CodeBehind="TinTucList.aspx.cs" Inherits="Website.Administrator.TinTucList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
    <h2>Quản lí danh mục</h2>
       
        <a href="DanhMucList.aspx" class="bt_blue"><span class="bt_blue_lft"></span><strong>Danh Sách Danh Mục</strong><span class="bt_blue_r"></span></a>

        <a href="DanhMucDetail.aspx" class="bt_green"><span class="bt_green_lft"></span><strong>
        <asp:Label ID="Label1" runat="server" Text="Thêm Danh Mục"></asp:Label></strong><span
            class="bt_green_r"></span></a>

            </div>
     
    <table id="rounded-corner" summary="2007 Major IT Companies' Profit">
        <thead>
            <tr>
                <th scope="col" class="style1">
                    <asp:CheckBox ID="cbxTimKiem" runat="server" Text="Dm Cha" />
                    &nbsp;
                </th>
                <th scope="col" class="rounded">
                    <span class="disabled">tìm theo ten
            <asp:TextBox ID="txtTen" runat="server" AutoPostBack="True"></asp:TextBox>
        </span>
                </th>
                <th scope="col" class="rounded">
                    <strong>Danh mục cha</strong>
                </th>
                <th scope="col" class="rounded">
                    <asp:DropDownList ID="ddlDmCha" runat="server" AutoPostBack="True" EnableViewState="true"
                        Width="208px" OnSelectedIndexChanged="ddlDmCha_SelectedIndexChanged">
                    </asp:DropDownList>
                </th>
                <th scope="col" class="rounded">
                    &nbsp;
                </th>
                <th scope="col" class="rounded">
                    &nbsp;
                </th>
                <th scope="col" class="rounded-q4">
                    &nbsp;
                </th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td class="style1">
                    <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">Check All</asp:LinkButton>
                </td>
                <td>
                    <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">Uncheck All</asp:LinkButton>
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>
        </tbody>
    </table>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
        PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" OnRowDeleting="GridView1_RowDeleting"
        OnRowEditing="GridView1_RowEditing" AllowPaging="True"
        OnPageIndexChanging="GridView1_PageIndexChanging" 
        onselectedindexchanging="GridView1_SelectedIndexChanging" 
    EnableModelValidation="True">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField AccessibleHeaderText="ProductSelector" HeaderText="Xóa">
                <ItemTemplate>
                    <asp:CheckBox ID="ProductSelector" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="id" HeaderText="Mã Dm" />
            <asp:BoundField DataField="ten" HeaderText="Tên danh mục" />
            <asp:CommandField ShowEditButton="True" EditImageUrl="~/Administrator/resourceConten/images/user_edit.png" />
            <asp:CommandField ShowDeleteButton="True" EditImageUrl="~/Administrator/resourceConten/images/trash.png"
                EditText="" />
            <asp:CommandField ShowSelectButton="True" />
        </Columns>
        <FooterStyle BackColor="#990000" ForeColor="White" />
        <HeaderStyle BackColor="#33CC33" ForeColor="White" HorizontalAlign="Left" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" VerticalAlign="Top" />
        <SelectedRowStyle BackColor="#FFCC66" ForeColor="Navy" />
    </asp:GridView>
    <br />
    Danh Mục Con
    <br />
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" CssClass="mGrid"
        PagerStyle-CssClass="pgr" AlternatingRowStyle-CssClass="alt" OnRowDeleting="GridView2_RowDeleting"
        OnRowEditing="GridView2_RowEditing" AllowPaging="True"
        OnPageIndexChanging="GridView2_PageIndexChanging" 
    EnableModelValidation="True">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField AccessibleHeaderText="ProductSelector" HeaderText="Xóa">
                <ItemTemplate>
                    <asp:CheckBox ID="ProductSelector" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="id" HeaderText="Mã Dm" />
            <asp:BoundField DataField="ten" HeaderText="Tên danh mục" />
            <asp:CommandField ShowEditButton="True" EditImageUrl="~/Administrator/resourceConten/images/user_edit.png" />
            <asp:CommandField ShowDeleteButton="True" EditImageUrl="~/Administrator/resourceConten/images/trash.png"
                EditText="" />
        </Columns>
        <FooterStyle BackColor="#990000" ForeColor="White" />
        <HeaderStyle BackColor="#33CC33" ForeColor="White" HorizontalAlign="Left" />
        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" VerticalAlign="Top" />
        <SelectedRowStyle BackColor="#FFCC66" ForeColor="Navy" />
    </asp:GridView>
    <a href="#"
                        class="bt_red"><span class="bt_red_lft"></span><strong>
                            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Administrator/resourceConten/images/xoaLc.jpg"
                                OnClick="imgXoaLuaChon" /></strong><span class="bt_red_r"></span></a>
    
    <br /><br /><br />s
</asp:Content>

